package Test03_answer;
/**
 *       private成员变量name,number,birthday，其中birthday 为MyDate类的对象；
         abstract方法earnings()；
         toString()方法输出对象的name,number和birthday。
 */
public abstract class Employee {

	private String name;
	private String number;
	private MyDate birthday; //birthday 为MyDate类的对象；
	
	public Employee() {
		
	}

	public Employee(String name, String number, MyDate birthday) {
		this.name = name;
		this.number = number;
		this.birthday = birthday;
	}

	

	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getNumber() {
		return number;
	}



	public void setNumber(String number) {
		this.number = number;
	}



	public MyDate getBirthday() {
		return birthday;
	}



	public void setBirthday(MyDate birthday) {
		this.birthday = birthday;
	}



	public abstract int earnings();
	
	public String toString(){
		String info = name + "---" + number + "---" + birthday;
		return info;
	}
}
